package pATT.bNEdit.gui;

import java.awt.Dimension;

import pATT.bNEdit.obj17.View;



/**
 * <p>Title: BNEdit</p>
 * <p>Description: Node's monitor view </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author Luciana Zavaleta
 * @version 1.0
 */


public class Monitor extends Cell{

  public Monitor(){
    super();
  }

  public Monitor(Object varName, View v){
    super();
    createCell(varName);
    setView(v);
  }

  public void createCell(Object varName){
    this.cell=new MonitorGraphCell(varName);
  }

  public Dimension getDimension(){
    Dimension size=((MonitorGraphCell) cell).getViewNodo().getDimension();
    size.setSize(size.getWidth()+5, size.getHeight()+5);
    return size;
  }

  public void setView (View v){
    ((MonitorGraphCell) cell).setView(v);
  }

  public View getView(){
    return ((MonitorGraphCell) cell).getViewNodo();
  }

}

